home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 57805 / 57805.xpi / content / overlay.js < prev    next >
Text File  |  2010-01-23  |  3KB  |  51 lines

  1. /* 
  2.         #################################################################
  3.         #   Firefox GUI Minify                                          #
  4.         #################################################################
  5.         #   Author:     Domenico Martella                               #
  6.         #   E-mail:     domenico.martella@alcacoop.it                   #
  7.         #   Date:       2010-01-04                                      #
  8.         #################################################################
  9.         #                                                               #
  10.         #       Copyright (C) 2010  - Alca Soc. Coop. (Lecce, IT)       #
  11.         #       http://www.alcacoop.it                                  #
  12.         #                                                               #
  13.         # This program is free software; you can redistribute           #
  14.         # it and/or modify it under the terms of the GNU General        #
  15.         # Public License as published by the Free Software              #
  16.         # Foundation; either version 3 of the License, or (at your      #
  17.         # option) any later version.                                    #
  18.         #                                                               #
  19.         # This program is distributed in the hope that it will be       #
  20.         # useful, but WITHOUT ANY WARRANTY; without even the            #
  21.         # implied warranty of MERCHANTABILITY or FITNESS FOR A          #
  22.         # PARTICULAR PURPOSE.  See the GNU General Public License       #
  23.         # for more details.                                             #
  24.         #                                                               #
  25.         # You should have received a copy of the GNU General            #
  26.         # Public License along with this program; if not, write to      #
  27.         # the Free Software Foundation, Inc., 59 Temple Place -         #
  28.         # Suite 330, Boston, MA  02111-1307, USA.                       #
  29.         #################################################################
  30. */ 
  31.       
  32. window.addEventListener("load",function(event){
  33.  
  34.   HGBExtension.init();
  35.   HGBStatusBar.init(); 
  36.  
  37.   PrefsObserver.onLoad(event);
  38.  
  39.   window.addEventListener("keydown", function(ev){ HGBExtension.keydownHandler(ev) }, false);
  40.  
  41.   Application.activeWindow.events.addListener("TabClose", HGBExtension.tabCloseHandler);
  42.   Application.activeWindow.events.addListener("TabOpen", HGBExtension.tabOpenHandler);
  43.  
  44.   Application.events.addListener("quit", function(event){ 
  45.     //alert("Non voglio morire");
  46.     Application.prefs.setValue("gui_minify.laststate", HGBExtension.last_state);
  47.   });
  48.  
  49. }, false);
  50.  
  51.